<template>
  <div id="Home">
    <el-button type="info" @click="leave">退出登录</el-button>
  </div>
</template>

<script>

export default {
  methods:{
    leave(){
      sessionStorage.clear();
      this.$router.push('/login');
      this.$message({
        type:'success',
        message:'您已退出登录',
        duration:3000
      })
    }
  },
  components:{
  }
}
</script>

<style>

</style>